//
// Created by Arikes on 9/27/21.
//

#ifndef DESIGNERMODE_CONCRETECOLLEAGUE1_H
#define DESIGNERMODE_CONCRETECOLLEAGUE1_H
#include "ConcreteColleague1.h"
#include <iostream>
namespace MediatorMode
{
    class ConcreteColleague1:public Colleague
    {
    public:
        virtual void receive()
        {
            std::cout<<"具体同事类1收到请求。"<<std::endl;
        }
        virtual void send()
        {
            std::cout<<"具体同事类1发出请求。"<<std::endl;
            _mediator->relay(this);
        }
    private:

    };

    class ConcreteColleague2:public Colleague
    {
    public:
        virtual void receive()
        {
            std::cout<<"具体同事类2收到请求。"<<std::endl;
        }
        virtual void send()
        {
            std::cout<<"具体同事类2发出请求。"<<std::endl;
            _mediator->relay(this);
        }
    private:

    };    
}

#endif //DESIGNERMODE_CONCRETECOLLEAGUE1_H
